package com.example.base.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

import java.io.Serializable;

public class FastJsonUtils {

    /**
     * 获取格式化后的json字符串
     * @param obj
     * @return
     */
    public static String getPrettyFormatJsonStr(Object obj){
        String jsonString = JSON.toJSONString(obj, SerializerFeature.PrettyFormat);
        return jsonString;
    }

    
}
